package org.apache.tomcat.util.digester;

import org.apache.tomcat.util.IntrospectionUtils.SecurePropertySource;

/**
 * SystemPropertySource
 *
 * @author chentudong
 * @date 2024/2/21 10:35
 * @since 1.0
 */
public class SystemPropertySource implements SecurePropertySource {

  /**
   * getProperty
   *
   * @param key key
   * @return String
   */
  @Override
  public String getProperty(String key) {
    return getProperty(key, null);
  }

  /**
   * getProperty
   *
   * @param key         key
   * @param classLoader classLoader
   * @return String
   */
  @Override
  public String getProperty(String key, ClassLoader classLoader) {
    return System.getProperty(key);
  }
}
